package org.dxy.types.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @description:
 * @author: dxy
 * @createTime: 2025/6/18 21:10
 */
@Getter
@RequiredArgsConstructor
public enum WorkstationStatusEnum {
    /**
     * 空闲、可调度
     */
    IDLE("idle", "空闲待命"),

    /**
     * 正在执行任务
     */
    RUNNING("running", "运行中"),

    /**
     * 暂停或人工干预
     */
    PAUSED("paused", "已暂停"),

    /**
     * 异常或故障
     */
    ERROR("error", "异常"),

    /**
     * 工位停用/注销
     */
    REMOVED("removed", "已注销");



    private final String key;    // 程序内部或接口传输用的状态码
    private final String description; // 中文或人类可读描述
}
